<template>
  <div class="myfavorite-box">
    <div class="my-title">房源收藏</div>
    <div class="my-content">
      <div @click="toAll">
        <van-icon name="star-o" />
        <p>收藏</p>
      </div>
      <div @click="toBusinessHouse">
        <van-icon name="manager-o"/>
        <p>商住</p>
      </div>
      <div @click="toPlainHouse">
        <van-icon name="contact" />
        <p>民住</p>
      </div>
      <div @click="onlyWC">
        <van-icon name="coupon-o" />
        <p>独卫</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  methods:{
    toAll(){
      this.$router.push('/allcollect')
    },
    toBusinessHouse(){
      this.$router.push('/businesshousecollect')
    },
    toPlainHouse(){
      this.$router.push('/plainhousecollect')
    },
    onlyWC(){
      this.$router.push('onlywc')
    }
  }
};
</script>

<style scoped>
.myfavorite-box {
  margin: 0 10px;
  margin-bottom: 20px;
}
.my-title {
  font-size: 16px;
  font-weight: 700;
}
.my-content {
  display: flex;
  text-align: center;
  justify-content: center;
}
.my-content div {
  flex: 1;
  font-size: 20px;
  margin-top: 8px;
}
.my-content div p {
  margin-top: 3px;
  font-size: 12px;
}
.van-icon {
  color: #FF6564;
}
</style>